﻿@{
    ViewBag.Title = "Home Page";
}

@{
    if (ViewBag.Role == "User")
    {
        <div class="jumbotron">
            <h1>ASP.NET</h1>
            <p class="lead">Click below to see all of your ToDos</p>
            <p>@Html.ActionLink("All ToDos", "ToDoIndex", null, new { @class = "btn btn-primary btn-lg" })</p>
        </div>
    }
    else if (ViewBag.Role == "")
    {
        <div class="jumbotron">
            <h1>ASP.NET</h1>
            <p class="lead">Please log in to see your ToDos</p>
        </div>
    }
    else if (ViewBag.Role == "Admin")
    {
        <div class="jumbotron">
            <h1>ASP.NET</h1>
            <p class="lead">Please log in to see your ToDos</p>
            <p>@Html.ActionLink("All ToDos", "ToDoIndex", null, new { @class = "btn btn-primary btn-lg" })</p>
            <p>@Html.ActionLink("Admin Page", "AdminHome", null, new { @class = "btn btn-primary btn-lg" })</p>
        </div>
    }
}